Pārlūkot izejas kodu

w/o token auth on api calls

v2_uploadImages
rpm-mcarman pirms 1 gada
vecāks
revīzija
e6b23df180
6 mainītis faili ar 56 papildinājumiem un 0 dzēšanām
  1. +8
    -0
      Sources/App/Controllers/UserController.swift
  2. +8
    -0
      Sources/App/Errors/UserErrors.swift
  3. +8
    -0
      Sources/App/Migrations/CreateToken.swift
  4. +8
    -0
      Sources/App/Migrations/CreateUser.swift
  5. +8
    -0
      Sources/App/Models/Token.swift
  6. +16
    -0
      Sources/App/Models/User.swift

+ 8
- 0
Sources/App/Controllers/UserController.swift Parādīt failu

@@ -0,0 +1,8 @@
//
// File.swift
//
//
// Created by Michiel Carman on 9/26/24.
//

import Foundation

+ 8
- 0
Sources/App/Errors/UserErrors.swift Parādīt failu

@@ -0,0 +1,8 @@
//
// File.swift
//
//
// Created by Michiel Carman on 9/26/24.
//

import Foundation

+ 8
- 0
Sources/App/Migrations/CreateToken.swift Parādīt failu

@@ -0,0 +1,8 @@
//
// File.swift
//
//
// Created by Michiel Carman on 9/26/24.
//

import Foundation

+ 8
- 0
Sources/App/Migrations/CreateUser.swift Parādīt failu

@@ -0,0 +1,8 @@
//
// File.swift
//
//
// Created by Michiel Carman on 9/26/24.
//

import Foundation

+ 8
- 0
Sources/App/Models/Token.swift Parādīt failu

@@ -0,0 +1,8 @@
//
// File.swift
//
//
// Created by Michiel Carman on 9/24/24.
//

import Foundation

+ 16
- 0
Sources/App/Models/User.swift Parādīt failu

@@ -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
}

Notiek ielāde…
Atcelt
Saglabāt