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
|
@ -1,11 +1,9 @@
|
|||
import type {UserRow} from '../types';
|
||||
|
||||
import crypto from "crypto";
|
||||
import express from "express";
|
||||
import passport from "passport";
|
||||
import {Strategy as LocalStrategy} from "passport-local";
|
||||
|
||||
import {db} from "../db";
|
||||
import {db, UserRow} from "../db";
|
||||
|
||||
let router = express.Router();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue