admin can see every post; guest users see only own
This commit is contained in:
parent
d130b12418
commit
5290f4e960
13 changed files with 266 additions and 213 deletions
4
app/lib.ts
Normal file
4
app/lib.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
export function extension(str: String){
|
||||
let file = str.split("/").pop();
|
||||
return [file.substr(0,file.lastIndexOf(".")),file.substr(file.lastIndexOf("."),file.length).toLowerCase()];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue