This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ViewController.swift | |
| // TableViewDemo | |
| // | |
| // Created by Bilguun Batbold on 22/2/19. | |
| // Copyright © 2019 ISEM. All rights reserved. | |
| // | |
| import UIKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| struct User { | |
| let name: String | |
| let gender: String | |
| let email: String | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express'); | |
| const debug = require('debug')('nyapp:userrouter'); | |
| const multer = require('multer'); | |
| const path = require('path'); | |
| //set the storage destination and naming | |
| var storage = multer.diskStorage({ | |
| destination: (req, file, cb) => { | |
| cb(null, '../public/uploads') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express'); | |
| const app = express(); | |
| const debug = require('debug')('myapp:server'); | |
| const path = require('path'); | |
| const multer = require('multer'); | |
| const logger = require('morgan'); | |
| const serveIndex = require('serve-index') | |
| var storage = multer.diskStorage({ | |
| destination: (req, file, cb) => { |
NewerOlder