This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
mcarman
/
fueling_v1
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
w/o token auth on api calls
v2_uploadImages
rpm-mcarman
1 year ago
parent
7e31c3c36b
commit
e6b23df180
6 changed files
with
56 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
Sources/App/Controllers/UserController.swift
+8
-0
Sources/App/Errors/UserErrors.swift
+8
-0
Sources/App/Migrations/CreateToken.swift
+8
-0
Sources/App/Migrations/CreateUser.swift
+8
-0
Sources/App/Models/Token.swift
+16
-0
Sources/App/Models/User.swift
+ 8
- 0
Sources/App/Controllers/UserController.swift
View File
@@ -0,0 +1,8 @@
//
// File.swift
//
//
// Created by Michiel Carman on 9/26/24.
//
import Foundation
+ 8
- 0
Sources/App/Errors/UserErrors.swift
View File
@@ -0,0 +1,8 @@
//
// File.swift
//
//
// Created by Michiel Carman on 9/26/24.
//
import Foundation
+ 8
- 0
Sources/App/Migrations/CreateToken.swift
View File
@@ -0,0 +1,8 @@
//
// File.swift
//
//
// Created by Michiel Carman on 9/26/24.
//
import Foundation
+ 8
- 0
Sources/App/Migrations/CreateUser.swift
View File
@@ -0,0 +1,8 @@
//
// File.swift
//
//
// Created by Michiel Carman on 9/26/24.
//
import Foundation
+ 8
- 0
Sources/App/Models/Token.swift
View File
@@ -0,0 +1,8 @@
//
// File.swift
//
//
// Created by Michiel Carman on 9/24/24.
//
import Foundation
+ 16
- 0
Sources/App/Models/User.swift
View File
@@ -0,0 +1,16 @@
//
// File.swift
//
//
// Created by Michiel Carman on 9/24/24.
//
import Foundation
import Vapor
import Fluent
final class User: Model {
@ID var id: UUID?
@Field(key: "name") var name: String
}
Write
Preview
Loading…
Cancel
Save